<%
'****************************************************
' Joekoe CMS 1.2 Free      Power by Joekoe.com
' Email: info@asp126.com  asp126@qq.com
' Web: http://www.asp126.com , http://www.ude.com.cn
' Copyright (C) 2004 Asp126.com All Rights Reserved.
'****************************************************

sub joekoe_template_common()
  dim file_name,temp1,dnum
  file_name=web_dim(6)&"include/common.asp"
  dnum=ubound(web_dim)
  temp1=vbcrlf&"<"&"%"&vbcrlf&"dim web_dim("&dnum&")"
  for i=0 to dnum
    temp1=temp1&vbcrlf&"web_dim("&i&")="""&web_dim(i)&""""
  next
  temp1=temp1&vbcrlf&"%"&">"
  call create_file(file_name,file_trim_vbcrlf(temp1))
end sub

sub joekoe_template_common_other()
  dim file_name,temp1,dnum
  file_name=web_dim(6)&"include/common_other.asp"
  temp1=vbcrlf&"<"&"%"&vbcrlf&"dim admin_valcode,top_pic,top_url,top_type,top_wh,banner_pic,banner_url,banner_type,banner_wh,scroll_head,openview,web_sm_server,web_sm_user,web_sm_pass" & _
	vbcrlf&"dim web_down,web_stamp,web_user_grade,web_forum_power_type,web_forum_type,web_nologin,web_nopost,web_copyright,web_frm_word,web_n_boy,web_n_girl" & _
	vbcrlf&"admin_valcode="""&admin_valcode&"""" & _
	vbcrlf&"top_pic="""&top_pic&"""" & _
	vbcrlf&"top_url="""&top_url&"""" & _
	vbcrlf&"top_type="""&top_type&"""" & _
	vbcrlf&"top_wh="""&top_wh&"""" & _
	vbcrlf&"banner_pic="""&banner_pic&"""" & _
	vbcrlf&"banner_url="""&banner_url&"""" & _
	vbcrlf&"banner_type="""&banner_type&"""" & _
	vbcrlf&"banner_wh="""&banner_wh&"""" & _
	vbcrlf&"scroll_head="""&scroll_head&"""" & _
	vbcrlf&"web_down="""&web_down&"""" & _
	vbcrlf&"openview="""&openview&"""" & _
	vbcrlf&"web_stamp="""&web_stamp&"""" & _
	vbcrlf&"web_user_grade="""&web_user_grade&"""" & _
	vbcrlf&"web_forum_power_type="&web_forum_power_type&"" & _
	vbcrlf&"web_forum_type="""&web_forum_type&"""" & _
	vbcrlf&"web_nologin="""&web_nologin&"""" & _
	vbcrlf&"web_nopost="""&web_nopost&"""" & _
	vbcrlf&"web_copyright="""&web_copyright&"""" & _
	vbcrlf&"web_frm_word="""&web_frm_word&"""" & _
	vbcrlf&"web_n_boy="""&web_n_boy&"""" & _
	vbcrlf&"web_n_girl="""&web_n_girl&"""" & _
	vbcrlf&"web_sm_server="""&web_sm_server&"""" & _
    vbcrlf&"web_sm_user="""&web_sm_user&"""" & _
    vbcrlf&"web_sm_pass="""&web_sm_pass&"""" & _  
	vbcrlf&"%"&">"
  call create_file(file_name,file_trim_vbcrlf(temp1))
end sub

sub joekoe_template_js_config()
  dim file_name,cdim_upload,temp1
  file_name=web_dim(6)&"style/joekoe_config.js"
  cdim_upload=split(web_dim(14),"|")
  temp1=vbcrlf&"var web_name="""&web_dim(1)&""";" & _
	vbcrlf&"var web_url="""&web_dim(2)&""";" & _
	vbcrlf&"var web_email="""&web_dim(4)&""";" & _
	vbcrlf&"var web_skin="""&web_dim(7)&""";" & _
	vbcrlf&"var web_wid="""&web_dim(8)&""";" & _
	vbcrlf&"var web_dir="""&web_dim(6)&""";" & _
	vbcrlf&"var m_unit="""&web_dim(9)&""";" & _
	vbcrlf&"var m_hei="&dim_num(6)&";" & _
	vbcrlf&"var web_etim="&dim_num(2)&";" & _
	vbcrlf&"var page_num="&dim_num(1)&";" & _
	vbcrlf&"var hot_num="&dim_num(18)&";" & _
	vbcrlf&"var auto_tim="&dim_num(21)&";" & _
	vbcrlf&"var max_word="&dim_num(4)&";" & _
	vbcrlf&"var pic_w="&dim_num(15)&";" & _
	vbcrlf&"var pic_h="&dim_num(16)&";" & _
	vbcrlf&"var max_w="&dim_num(17)&";" & _
	vbcrlf&"var face_num="&dim_num(5)&";" & _
	vbcrlf&"var upload_size="&cdim_upload(1)&";" & _
	vbcrlf&"var upload_file="""&web_dim(13)&""";" & _
	vbcrlf&"var upload_type="""&cdim_upload(0)&""";" & _
	vbcrlf&"var top_pic="""&top_pic&""";" & _
	vbcrlf&"var top_url="""&top_url&""";" & _
	vbcrlf&"var top_type="""&top_type&""";" & _
	vbcrlf&"var top_wh="""&top_wh&""";" & _
	vbcrlf&"var banner_pic="""&banner_pic&""";" & _
	vbcrlf&"var banner_url="""&banner_url&""";" & _
	vbcrlf&"var banner_type="""&banner_type&""";" & _
	vbcrlf&"var banner_wh="""&banner_wh&""";" & _
	vbcrlf&"var scroll_head="""&scroll_head&"""" & _
	vbcrlf&"var web_nologin="""&web_nologin&""";" & _
	vbcrlf&"var web_nopost="""&web_nopost&""";" & _
	vbcrlf&"var web_copyright="""&web_copyright&""";" & _
	vbcrlf&"var web_frm_word="""&web_frm_word&""";" & _
	vbcrlf&"var web_forum_type="""&web_forum_type&""";" & _
	vbcrlf&"var web_forum_power_type="&web_forum_power_type&";" & _
	vbcrlf&"var web_user_power="""&web_dim(19)&""";" & _
	vbcrlf&"var web_user_grade="""&web_user_grade&""";" & _
	vbcrlf&"var web_stamp="""&web_stamp&""";" & _
	vbcrlf&"var web_n_boy="""&web_n_boy&""";" & _
	vbcrlf&"var web_n_girl="""&web_n_girl&""";" & _
	vbcrlf&"var openview="&openview&";"
  erase cdim_upload
  call create_file(file_name,temp1)
end sub

sub joekoe_template_css(dvar,cssskin,cssname)
  if dvar="" or isnull(dvar) then exit sub
  dim file_name,temp1,dim_tmp
  file_name=cssname
  dim_tmp=split(dvar,"|")
  temp1=vbcrlf&"body,p,td,th { font-family:"&dim_tmp(20)&"; font-size:"&dim_tmp(21)&"; color:"&dim_tmp(5)&" }" & _
	vbcrlf&"body { background-color:"&dim_tmp(0)&";" & _
	vbcrlf&"background-image: url('"&web_dim(6)&"skin/"&cssskin&"/bg.gif');" & _
	vbcrlf&"scrollbar-face-color: #eeeeee;" & _
	vbcrlf&"scrollbar-highlight-color: #ffffff;" & _
	vbcrlf&"scrollbar-shadow-color: #dee3e7;" & _
	vbcrlf&"scrollbar-3dlight-color: #d1d7dc;" & _
	vbcrlf&"scrollbar-arrow-color:  "&dim_tmp(5)&";" & _
	vbcrlf&"scrollbar-track-color: #ededed;" & _
	vbcrlf&"scrollbar-darkshadow-color: "&dim_tmp(7)&"; }" & _
	vbcrlf&"input { border-top-width: 1px; padding-right: 1px; padding-left: 1px;" & _
	vbcrlf&" border-left-width: 1px; border-bottom-width: 1px; border-right-width: 1px;" & _
	vbcrlf&" padding-bottom: 1px; padding-top: 1px; height: 18px;" & _
	vbcrlf&" border-left-color: #c0c0c0; border-bottom-color: #c0c0c0;" & _
	vbcrlf&" border-top-color: #c0c0c0; border-right-color: #c0c0c0;" & _
	vbcrlf&" background-color: "&dim_tmp(0)&"; cursor: hand;" & _
	vbcrlf&" font-size: "&dim_tmp(21)&"; font-family: "&dim_tmp(20)&"; color: "&dim_tmp(5)&";" & _
	vbcrlf&"}" & _
	vbcrlf&"textarea { border-width: 1; border-color: #c0c0c0; background-color: "&dim_tmp(0)&";" & _
	vbcrlf&" font-family: "&dim_tmp(20)&"; font-size: "&dim_tmp(21)&"; cursor: hand; color: "&dim_tmp(5)&";" & _
	vbcrlf&"}" & _
	vbcrlf&"select { border-width: 1; border-color: #c0c0c0; background-color: "&dim_tmp(0)&";" & _
	vbcrlf&" font-family: "&dim_tmp(20)&"; font-size:"&dim_tmp(21)&"; cursor: hand; color: "&dim_tmp(5)&";" & _
	vbcrlf&"}" & _
	vbcrlf&".bg { background-color:"&dim_tmp(0)&"; }" & _
	vbcrlf&".bg_td { background-color:"&dim_tmp(1)&"; }" & _
	vbcrlf&".bg_tds { background-color:"&dim_tmp(2)&"; }" & _
	vbcrlf&".bg_table { background-color:"&dim_tmp(4)&"; }" & _
	vbcrlf&".bg_frame { background-color:"&dim_tmp(3)&"; }" & _
	vbcrlf&".tablew { width:"&dim_tmp(24)&"; }" & _
	vbcrlf&".table { width:"&dim_tmp(24)&"; border: 1px; background-color: "&dim_tmp(4)&"; }" & _
	vbcrlf&".table0 { width:"&dim_tmp(25)&"; border: 1px; background-color: "&dim_tmp(4)&"; }" & _
	vbcrlf&".td { background-image: url('"&web_dim(6)&"skin/"&cssskin&"/bg_td.gif'); color: "&dim_tmp(6)&"; height: 23px; font-weight:bold; }" & _
	vbcrlf&".td0 { background-image: url('"&web_dim(6)&"skin/"&cssskin&"/bg_td.gif'); color: "&dim_tmp(6)&"; height: 20px; font-weight:bold; }" & _
	vbcrlf&".tims { color: "&dim_tmp(7)&"; font-family: "&dim_tmp(22)&"; font-size:"&dim_tmp(23)&"; }" & _
	vbcrlf&".htd { line-height:150%; }" & _
	vbcrlf&".btd { font-weight:bold; }" & _
	vbcrlf&".bw { word-wrap:break-word; }" & _
	vbcrlf&".tf { table-layout:fixed; }" & _
	vbcrlf&".gray { color:"&dim_tmp(7)&"; }" & _
	vbcrlf&".red { color:"&dim_tmp(8)&"; }" & _
	vbcrlf&".red2 { color:"&dim_tmp(9)&"; }" & _
	vbcrlf&".blue { color:"&dim_tmp(10)&"; }" & _
	vbcrlf&".ftd { color:"&dim_tmp(6)&"; }" & _
	vbcrlf&".fbg { color: "&dim_tmp(0)&"; }" & _
	vbcrlf&".div_alt { width:240px; margin-left:18px; border:1px solid black; background-color:#ffffe1; color:#000000; padding:2px; }" & _
	vbcrlf&"a { color:"&dim_tmp(11)&"; text-decoration: none; }" & _
	vbcrlf&"a:hover { color:"&dim_tmp(12)&"; text-decoration: underline; }" & _
	vbcrlf&"a.h_menu { color:"&dim_tmp(14)&"; text-decoration: none }" & _
	vbcrlf&"a.h_menu:hover { color:"&dim_tmp(15)&"; text-decoration: underline }" & _
	vbcrlf&"a.h_td { color:"&dim_tmp(6)&"; text-decoration: none }" & _
	vbcrlf&"a.h_td:hover { color:"&dim_tmp(6)&"; text-decoration: underline }" & _
	vbcrlf&"a.h_pop { color:"&dim_tmp(17)&"; text-decoration: none }" & _
	vbcrlf&"a.h_pop:hover { lor:"&dim_tmp(18)&"; text-decoration: underline }"
  erase dim_tmp
  call create_file(file_name,temp1)
end sub

'****************************************************
' Joekoe CMS 1.2 Free      Power by Joekoe.com
' Email: info@asp126.com  asp126@qq.com
' Web: http://www.asp126.com , http://www.ude.com.cn
' Copyright (C) 2004 Asp126.com All Rights Reserved.
'****************************************************
%>